package SigngJFrame;

import javax.swing.*;

public class Sign extends JFrame{
    public Sign(){
        sgJF();

        addBg();



        this.setVisible(true);
    }

    private void sgJF() {
        this.setSize(488, 430);
        this.setTitle("注册");
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        this.setAlwaysOnTop(true);
        this.setLayout(null);
    }

    private void addBg(){
        ImageIcon bg = new ImageIcon("PuzzleGame\\image\\register\\background.png");
        JLabel jLabel1 = new JLabel(bg);
        jLabel1.setBounds(0, 0, 470, 390);
        this.add(jLabel1);
    }
}
